package com.zhiche.lisa.lspm.dao.model.carrier;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 牵引车绑定的卡片（油卡、路桥卡）
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_carrier_card")
public class CarrierCard extends Model<CarrierCard> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 牵引车ID
     */
	@TableField("carrier_id")
	private Long carrierId;
    /**
     * 卡号
     */
	@TableField("card_sn")
	private String cardSn;
    /**
     * 发卡方类型
     */
	@TableField("issuer_type_code")
	private String issuerTypeCode;
    /**
     * 备注
     */
	@TableField("card_info")
	private String cardInfo;
    /**
     * 卡类型
     */
	@TableField("card_type_code")
	private String cardTypeCode;

	/**
	 * 创建人
	 */
	private String creator;
	/**
	 * 创建时间
	 */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
	 * 更新时间
	 */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(Long carrierId) {
		this.carrierId = carrierId;
	}

	public String getCardSn() {
		return cardSn;
	}

	public void setCardSn(String cardSn) {
		this.cardSn = cardSn;
	}

	public String getIssuerTypeCode() {
		return issuerTypeCode;
	}

	public void setIssuerTypeCode(String issuerTypeCode) {
		this.issuerTypeCode = issuerTypeCode;
	}

	public String getCardInfo() {
		return cardInfo;
	}

	public void setCardInfo(String cardInfo) {
		this.cardInfo = cardInfo;
	}

	public String getCardTypeCode() {
		return cardTypeCode;
	}

	public void setCardTypeCode(String cardTypeCode) {
		this.cardTypeCode = cardTypeCode;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

    @Override
    public String toString() {
        return "CarrierCard{" +
                "id=" + id +
                ", carrierId=" + carrierId +
                ", cardSn='" + cardSn + '\'' +
                ", issuerTypeCode='" + issuerTypeCode + '\'' +
                ", cardInfo='" + cardInfo + '\'' +
                ", cardTypeCode='" + cardTypeCode + '\'' +
                ", creator='" + creator + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                "} " + super.toString();
    }
}
